package com.gitee.qdbp.general.common.biz.message.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gitee.qdbp.able.exception.ServiceException;
import com.gitee.qdbp.able.jdbc.ordering.OrderPaging;
import com.gitee.qdbp.able.jdbc.paging.PageList;
import com.gitee.qdbp.general.common.api.message.model.SystemMessageBean;
import com.gitee.qdbp.general.common.api.message.model.SystemMessageWhere;
import com.gitee.qdbp.general.common.api.message.service.ISystemMessageQueryer;
import com.gitee.qdbp.general.common.biz.message.basic.SystemMessageBasic;

/**
 * 系统消息业务处理类
 *
 * @author zhh
 * @version 170802
 */
@Service
@Transactional(readOnly = true)
public class SystemMessageQueryer implements ISystemMessageQueryer {

    /** 系统消息DAO **/
    @Autowired
    private SystemMessageBasic systemMessageBasic;

    @Override
    public SystemMessageBean find(String id) throws ServiceException {
        return systemMessageBasic.findById(id);
    }

    @Override
    public SystemMessageBean find(SystemMessageWhere where) throws ServiceException {
        return systemMessageBasic.find(where);
    }

    @Override
    public PageList<SystemMessageBean> list(SystemMessageWhere where, OrderPaging paging) throws ServiceException {
        return systemMessageBasic.list(where, paging);
    }

}